package com.xucy.springboot.service.impl;

import com.xucy.springboot.dao.PersonDao;
import com.xucy.springboot.entity.Person;
import com.xucy.springboot.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonDao personDao;

    @Override
    public List<Person> findAllPerson() {
        return personDao.findAllPerson();
    }
}
